package boot.spring.elastic.client;

import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*@Configuration
@Slf4j*/
public class Client {
	
	/*@Bean
	RestHighLevelClient configRestHighLevelClient(){
		RestHighLevelClient client = new RestHighLevelClient(
		        RestClient.builder(

		        		// FIXME STAGE 10.19.21.113:9200,10.19.191.159:9200,10.19.42.118:9200
						new HttpHost("10.19.21.113", 9200, "http"),
						new HttpHost("10.19.191.159", 9200, "http"),
						new HttpHost("10.19.42.118", 9200, "http")


						// FIXME 生产
						// ["10.10.75.130:9200","10.10.92.60:9200","10.10.5.43:9200","10.10.173.204:9200","10.10.181.100:9200"]
						*//*new HttpHost("10.10.75.130", 9200, "http"),
						new HttpHost("10.10.92.60", 9200, "http"),
						new HttpHost("10.10.5.43", 9200, "http"),
						new HttpHost("10.10.173.204", 9200, "http"),
						new HttpHost("10.10.181.100", 9200, "http")*//*
				));
		log.info("boot.spring.elastic.client.Client.configRestHighLevelClient");
		return client;
	}*/
}
